<html>
<head><meta charset="utf-8"><title>line-numbers · wg-async-foundations/book · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/index.html">wg-async-foundations/book</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html">line-numbers</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="168961128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168961128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168961128">(Jun 25 2019 at 17:56)</a>:</h4>
<p><span class="user-mention" data-user-id="127859">@Taylor Cramer</span> I think what we want to do re: line-numbers is to write some kind of mdbook plugin that lets you reference "search terms". e.g., instead of <code>foo.rs:3:5</code>, i'd like to write</p>
<div class="codehilite"><pre><span></span>#include foo.rs:START_01:END_01
</pre></div>


<p>and then have</p>
<div class="codehilite"><pre><span></span><span class="c1">// START_01</span>
<span class="n">blah</span><span class="w"></span>
<span class="n">blah</span><span class="w"></span>
<span class="n">blah</span><span class="w"></span>
<span class="c1">// END_01</span>
</pre></div>


<p>in the source</p>



<a name="168961133"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168961133" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168961133">(Jun 25 2019 at 17:56)</a>:</h4>
<p>but...annoying</p>



<a name="168964944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168964944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Cramer <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168964944">(Jun 25 2019 at 18:40)</a>:</h4>
<p>Yup, that'd be nice</p>



<a name="168970046"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168970046" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168970046">(Jun 25 2019 at 19:39)</a>:</h4>
<ul>
<li><a href="https://github.com/rust-lang-nursery/mdBook/pull/851" target="_blank" title="https://github.com/rust-lang-nursery/mdBook/pull/851">https://github.com/rust-lang-nursery/mdBook/pull/851</a></li>
<li><a href="https://github.com/tailwind/mdbook-bookimport" target="_blank" title="https://github.com/tailwind/mdbook-bookimport">https://github.com/tailwind/mdbook-bookimport</a></li>
</ul>



<a name="168970760"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168970760" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168970760">(Jun 25 2019 at 19:48)</a>:</h4>
<p>oooh</p>



<a name="168970805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/201246-wg-async-foundations/book/topic/line-numbers/near/168970805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/201246-wg-async-foundations/book/topic/line-numbers.html#168970805">(Jun 25 2019 at 19:49)</a>:</h4>
<p>I suppose I have merge powers on mdbook :P</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>